package com.download.backstage.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.download.web.entity.BusDicItem;
import com.download.web.service.IBusDicItemService;
import com.download.web.service.impl.BusDicItemServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @description: 后台首页
 * @author: cmy
 * @create: 2019-02-22 11:14
 **/
//@RestController
@Controller
@RequestMapping("/backstage")
public class IndexController {



    @RequestMapping("/index")
    public String getIndex(){
        return "backstage/index";
    }
    //文章管理
    @RequestMapping("/article")
    public String article(){
        return "backstage/article";
    }
    //用户管理
    @RequestMapping("/user")
    public String user(){
        return "backstage/user";
    }
    @RequestMapping("/dictionary")
    public String dictionary(){
        return "backstage/keyword";
    }
    //购买记录
    @RequestMapping("/purchaseRecord")
    public String purchaseRecord(){
        return "backstage/paylist";
    }
    @RequestMapping("/loginSetting")
    public String loginSetting(){
        return "backstage/loginSetting";
    }
    @RequestMapping("/paylist")
    public String paylist(){
        return "backstage/paylist";
    }

    @RequestMapping("/toLogin")
    public String toLogin(Model model)
    {
        model.addAttribute("msg","");
        return "backstage/pages-login";

    }
    @RequestMapping("/friendLink")
    public String friendLink(){
        return "backstage/friendshiplink";
    }
    @RequestMapping("/advertising")
    public String advertising(){
        return "backstage/advertising";
    }

}
